import React, {Component} from 'react';
import {BrowserRouter, Routes, Route} from 'react-router-dom';
import Login from './pages/Login/Login'; // 确保这个路径正确且Login是一个React组件
import Admin from './pages/Admin/Admin'; // 确保这个路径正确且Admin是一个React组件

/* 应用根组件 */
class App extends Component {
    render() {
        return (
            <BrowserRouter>
                <Routes>
                    <Route path="/login" element={<Login/>}/>
                    <Route path="/" element={<Admin/>}/>
                </Routes>
            </BrowserRouter>
        );
    }
}

export default App;